.container{
    height: 10000px;
}

.sticky{
    position:sticky;
    top: 0;
}